package com.yonyou.pmclouds.basecom.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static com.yonyou.pmclouds.basecom.lock.PMLock.DEFAULT_TIME_LOCK_TO_WAIT;
import static com.yonyou.pmclouds.basecom.lock.PMLock.DEFAULT_TIME_OUT;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Lock {

	String value() default "";

	String staticvalue() default "";

	long waittime() default DEFAULT_TIME_LOCK_TO_WAIT;

	long timeout() default DEFAULT_TIME_OUT;

	boolean checkstatus() default true;
}
